/**
 * Project:TODO ADD PROJECT NAME
 * Modify Information:
 * ================================================================
 * Author         Date           Description
 * ------------   ----------      --------------------------------
 * songyf        2023/4/19         TODO:
 * ================================================================
 * Copyright (c) 银联商务股份有限公司 www.chinaums.com
 */
package language.jndi;

import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;

public class LdapJndiExample {
    public static void main(String[] args) throws NamingException {
        System.out.println("Enum");
        DirContext ctx = new InitialDirContext();
        Object lookup = ctx.lookup("dns://www.baidu.com");
        System.out.println(lookup);

    }
}
